//
//  MyBlogOneImageCell.swift
//  maosheng
//
//  Created by lxl on 2019/8/20.
//

import UIKit

class MyBlogOneImageCell: MyCollectNoImgCell {
//    let titleLab = UILabel()
    let rightImg = UIImageView()

//    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
//        super.init(style: style, reuseIdentifier: reuseIdentifier)
////        configUI()
//    }
//    
//    required init?(coder aDecoder: NSCoder) {
//        fatalError("init(coder:) has not been implemented")
//    }
   override func configCell(){
        let imgWidth = (SCREENW - 30 - 20)/3
        rightImg.tag = 201
        rightImg.layer.cornerRadius = 5
        rightImg.layer.masksToBounds = true
        contentView.addSubview(rightImg)
        rightImg.snp.makeConstraints { (make) in
            make.right.equalTo(-15)
            make.width.equalTo(imgWidth)
            make.height.equalTo(85)
            make.centerY.equalToSuperview()
            make.bottom.lessThanOrEqualTo(-10)
          
        }
        
        
        
        contentView.addSubview(titleLab)
        titleLab.textAlignment = .left
        titleLab.numberOfLines = 0
        titleLab.lineBreakMode = .byWordWrapping
        titleLab.textColor = KYP_333333_COLOR
        titleLab.font = UIFont(name: PF_Medium, size: 15)
        titleLab.snp.makeConstraints { (make) in
            make.left.equalTo(15)
            make.top.equalTo(10)
            make.bottom.lessThanOrEqualTo(-10)
            make.right.equalTo(rightImg.snp.left).offset(-15)
        }
    }
}
